/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pgentity.services;

import pgentity.SaleoffData;

/**
 *
 * @author Salm
 */
public class SaleoffService {
    private SaleoffService() {}
    
    public static final SaleoffService INST = new SaleoffService();
    
    public int getPaymentSaleOff(String saleID, String uid, String packID, long now)
    {
        SaleoffData data = SaleoffData.getData(saleID, uid);
        return data.getIntData(packID);
    }
    
    public void incPaymentSaleOff(String saleID, String uid, String packID, long now)
    {
        SaleoffData data = SaleoffData.getData(saleID, uid);
        data.incData(packID, 1);
    }
}
